home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / misc-part1 / 841 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.9 KB

  1. Path: felix.teclink.net!usenet
  2. From: rad@techlink.net (rad)
  3. Newsgroups: comp.sys.amiga.misc
  4. Subject: Re: OS features
  5. Date: 10 Jan 1996 02:11:02 GMT
  6. Organization: TECLink Internet Services: info@TECLink.Net
  7. Message-ID: <2530.6581T1360T1779@techlink.net>
  8. References: <4cf7vs$gfk@ArtWorks.apana.org.au>
  9. NNTP-Posting-Host: tc1_42.teclink.net
  10. X-Newsreader: THOR 2.22 (Amiga;TCP/IP) *UNREGISTERED*
  11.  
  12. >Christopher D. Judd (cdj@gmk02.chem.rpi.edu) wrote:
  13. >[...]
  14. >->     Virtual memory is fairly trivial.  It's already been done (VMM, etc.)
  15.  
  16. >I wouldn't say trivial (for an existing operating system) but certainly
  17. >doable. VMM & GigaMem are proof.
  18.  
  19. >-> so users who have slower processors or just don't want the performance
  20. >-> hit don't have to use it and those of us to whom stability is more
  21.  
  22. >This is a common misconception. There is no significant performance hit
  23. >with virtual memory, the address translations are done in hardware
  24. >effectively as part of the RAM. If they couldn't be done within a RAM cycle
  25. >then somebody would find a faster way of doing it (read wider RAM).
  26. >So there is no performance hit.
  27.  
  28. You are missleading people here.  Virtual memory causes a small performance
  29. hit over running in ram for three reasons:
  30.  
  31. 1)  Address translation can only be done within regular RAM cycles on a ATC
  32.     (address translation cache) hit.  Just like in the operation of caches,
  33.     ATCs can only hold a few address translations internally (64 in the case
  34.     of the 68040).  On a ATC miss a page table search in main memory (upto
  35.     three reads) must be done.  Sometimes a modified page descriptor must be
  36.     stored back to memory to make room for a new entry in the ATC, this could
  37.     involve up to three additional read or write cycles.
  38.  
  39. 2)  The ATC is a write through cache and since the ATC contains a page-
  40.     modified bit which needs to be updated on the first write of on a page,
  41.     their will be additional (up to three) additional read or write cycles
  42.     even though the descriptor may already be in the ATC.
  43.  
  44. 3)  Since a some ram is required to hold page tables you will on occasion need
  45.     to you swap space under virtual memory you would not need under a non-
  46.     virtual memory system.
  47.  
  48. >You do however get the appearance of
  49. >more RAM, the extra RAM is slower than adding more RAM chips, but to
  50. >call that a performance hit is misleading. Rather it is extra functionality.
  51.  
  52. You are correct that VMM adds an important functionality.  (Some programs
  53. that could not be run without out it, will run with it.)
  54.  
  55. ------------------------------------------------------------------------------
  56. - Richard Deken                   EMail: (personal) rad@teclink.net          -
  57. - VLSI design engineer                   (AuE business) rad@aue.com          -
  58. - Advanced Microelectronics       PGP public key available                   -
  59. ------------------------------------------------------------------------------
  60.  
  61.